package test.library.behavior;

import test.library.Book;
import test.library.BookList;

public class PrintBookList implements IBehavior{
    public void work(BookList bookList) {
        System.out.println("查阅书单");
        for(int i = 0;i < bookList.getQuantity();i++){
            System.out.println("第" + i + "本" + bookList.getBook(i));
        }
    }
}
